{% extends "profilebase.html" %}


{% block sidebar_title %}
	{% if profileOwner %}
	<label style="font-weight:bold;font-size:160%">REQUESTS</label>
	{% endif %}
{% endblock %}

{% block sidebar_content %}
	{% if profileOwner %}
		{% if friendRequests %}
			<label style="font-weight:bold;font-size:150%">Friend Requests</label><br/><br/>
			{% for fr in friendRequests %}
				
				<label style="font-weight:bold;font-size:150%"><a href="/myprofile/{{ fr.sender.id }}/">{{ fr.sender }}</a></label>
				
				<a href="/myprofile/acceptFriend/{{ fr.sender.id }}/">accept</a>
				<a href="/myprofile/rejectFriend/{{ fr.sender.id }}/">reject</a><br/><br/>
				
				
			{% endfor %}
		{% endif %}
		
		{% if employmentRequests %}
			<label style="font-weight:bold;font-size:150%">Employment Requests</label><br/><br/>
			{% for er in employmentRequests %}
				<label style="font-weight:bold;font-size:130%"><a href="/myprofile/{{ er.sender.id }}/">{{ er.sender }}</a></label>
				
				<a href="/myprofile/acceptEmployment/{{ er.sender.id }}/">accept</a>
				<a href="/myprofile/rejectEmployment/{{ er.sender.id }}/">reject</a><br/><br/>
			{% endfor %}
		
		{% endif %}
	{% endif %}
{% endblock %}

{% block main_title %}<h1>Connections</h1>{% endblock %}

{% block main_subtitle %}{% endblock %}

{% block main_content %}

	<label style="font-weight:bold;font-size:150%">Friends</label><br/><br/>
	{% for friend in friends %}
		<li><a href="/myprofile/{{ friend.id }}/">{{ friend }}</a></li><br/><br/><br/>
	{% empty %}
		{% if profileOwner %}
			You have no connections yet.
		{% else %}
			{{ currentUser.abstract_user }} has no connections yet.
		{% endif %}
	{% endfor %}
<br/><br/>
{% if employment %}
	<label style="font-weight:bold;font-size:150%">Employment</label><br/><br/>
	{% for emp in employment %}
		<li><a href="/myprofile/{{ emp.abstract_user.id }}/">{{ emp.abstract_user }}</a></li><br/><br/><br/>
	{% endfor %}
{% endif %}
{% endblock %}
